package com.ruoyi.web.banner.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * banner对象 banner
 *
 * @author 范书铭
 * @date 2024-10-19
 */
@ApiModel(value =  "banner",description = "")
@TableName(resultMap = "com.ruoyi.web.banner.mapper.BannerMapper.BannerResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class Banner extends BaseEntity{
private static final long serialVersionUID = 1L;

        /** $column.columnComment */
            @TableId(value = "id",type = IdType.AUTO)
        private Long id;

        /** 标题 */
                @ApiModelProperty(name = "标题",notes = "")
                @Excel(name = "标题")
        private String title;

        /** banner图片 */
                @ApiModelProperty(name = "banner图片",notes = "")
                @Excel(name = "banner图片")
        private String bannerImage;

        /** 关联对象类型 */
                @ApiModelProperty(name = "关联对象类型",notes = "")
                @Excel(name = "关联对象类型")
        private Long contactType;

        /** 关联对象ID */
                @ApiModelProperty(name = "关联对象ID",notes = "")
                @Excel(name = "关联对象ID")
        private Long contactId;

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id", getId())
        .append("title", getTitle())
        .append("bannerImage", getBannerImage())
        .append("contactType", getContactType())
        .append("contactId", getContactId())
        .append("updateTime", getUpdateTime())
        .append("updateBy", getUpdateBy())
        .append("createTime", getCreateTime())
        .append("createBy", getCreateBy())
        .append("remark", getRemark())
            .toString();
}
        }